﻿using System.Windows.Media;

namespace CPETwit.WPFClient.CustomObject
{
    public class CustomTweet
    {
        public ImageSource ImageSource { get; set; }
        public string Nom { get; set; }
        public string Description { get; set; }
        public double Temps { get; set; }
        public string Lien { get; set; }


        /// <summary>
        /// Méthode de création d'un CustomTweet.
        /// </summary>
        /// <param name="firstName"></param>
        /// <param name="messageContent"></param>
        /// <param name="source"></param>
        /// <param name="seconds"></param>
        /// <param name="link"></param>
        /// <returns></returns>
        public static CustomTweet CreateCustomTweet(string firstName, string messageContent,
                                                    ImageSource source, double seconds, string link)
        {
            return new CustomTweet()
                       {
                           Nom = firstName,
                           Description = messageContent,
                           ImageSource = source,
                           Temps = seconds,
                           Lien = link
                       };
        }
    }
}
